﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BidManage.aspx.cs" Inherits="ATW.MT.BaseManage.BidManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>竞价管理</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <script type="text/javascript" src="../Scripts/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="../Scripts/jsharp.popupdiv.js"></script>
    <script type="text/javascript" src="../Scripts/My97DatePicker/WdatePicker.js"></script>
    <link rel="Stylesheet" href="../Styles/css.css" />
    <base target="_self" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="main_hd">
        <h2>
            竞价管理
        </h2>
        <div style="max-height: 450px; overflow-y: scroll">
            <asp:Repeater runat="server" ID="rpList">
                <HeaderTemplate>
                    <table width="95%" border="0" cellpadding="0" cellspacing="0" class="queryResultTable">
                        <tr>
                            <th>
                            </th>
                            <th>
                                需求标题
                            </th>
                            <th>
                                竞价人
                            </th>
                            <th>
                                出价时间
                            </th>
                            <th>
                                总价(元)
                            </th>
                            <th>
                                交期
                            </th>
                            <th>
                                状态
                            </th>
                            <th>
                                总分
                            </th>
                            <th>
                                操作
                            </th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td>
                            <asp:LinkButton runat="server" ID="lbnBidDetail" OnClick="lbnBidDetail_Click" CommandArgument='<%#Eval("TDIBNO").ToString() %>'
                                CssClass="queryButton" Style="color: white; padding: 0px; text-decoration: none">
                               &nbsp;+&nbsp;
                            </asp:LinkButton>
                            <asp:LinkButton runat="server" ID="lbnBidDetailHide" OnClick="lbnBidDetailHide_Click"
                                CssClass="queryButton" Style="color: white; padding: 0px; text-decoration: none"
                                CommandArgument='<%#Eval("TDIBNO").ToString() %>' Visible="false">&nbsp;-&nbsp;</asp:LinkButton>
                            <asp:HiddenField runat="server" ID="hdfTDINO" Value='<%#Eval("tdino").ToString() %>' />
                        </td>
                        <td>
                            <%#Eval("tdiTitle").ToString()%>
                        </td>
                        <td>
                            <%#Eval("tauName").ToString()%>
                        </td>
                        <td>
                            <%#Eval("date").ToString()%>
                        </td>
                        <td>
                            <%#Eval("totalPrice").ToString()%>
                        </td>
                        <td>
                            <%#Eval("tdibDeliveryPeriod").ToString() + " " + Eval("tdibDeliveryPeriodUnit").ToString()%>
                        </td>
                        <td>
                            <%#Eval("rowstatus").ToString() %>
                        </td>
                        <td>
                            <%#Eval("totalScore").ToString() %>
                        </td>
                        <td>
                            <asp:LinkButton runat="server" ID="lbnBidBingo" OnClick="lbnBidBingo_Click" OnClientClick='return confirm("您确认采用该报价的投标吗？（注意，此操作无法撤销！）")'
                                CommandArgument='<%#Eval("TDIBNO").ToString() %>' Visible='<%#Eval("rowstatus").ToString()=="正常"?true:false%>'>
                            确认中标
                            </asp:LinkButton>
                        </td>
                    </tr>
                    <tr id="trDetail" runat="server" visible="false">
                        <td>
                        </td>
                        <td colspan="8">
                            <table border="0" cellpadding="0" cellspacing="0" class="queryResultTable" width="95%">
                                <tr>
                                    <th>
                                        报价明细
                                    </th>
                                    <td colspan="3" style="padding: 0px">
                                        <table border="0" cellpadding="0" style="margin: 0px" cellspacing="0" class="queryResultTable"
                                            width="100%">
                                            <tr>
                                                <th>
                                                    子项名称
                                                </th>
                                                <th>
                                                    数量
                                                </th>
                                                <th>
                                                    单位
                                                </th>
                                                <th>
                                                    单价
                                                </th>
                                                <th>
                                                    总价
                                                </th>
                                            </tr>
                                            <asp:Repeater runat="server" ID="rpSub">
                                                <ItemTemplate>
                                                    <tr>
                                                        <td>
                                                            <%#Eval("name").ToString() %>
                                                        </td>
                                                        <td>
                                                            <%#Eval("qty").ToString() %>
                                                        </td>
                                                        <td>
                                                            <%#Eval("unit").ToString() %>
                                                        </td>
                                                        <td>
                                                            <%#Eval("price").ToString() %>
                                                        </td>
                                                        <td>
                                                            <%#Eval("total").ToString() %>
                                                        </td>
                                                    </tr>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                            <tr>
                                                <td colspan="4" style="text-align: center;">
                                                    合计
                                                </td>
                                                <td>
                                                    <asp:Label runat="server" ID="lblSum" Text="0"></asp:Label>元
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        支付方式
                                    </th>
                                    <td>
                                        <asp:Label runat="server" ID="lblPay"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        得分明细
                                    </th>
                                    <td colspan="3">
                                        <asp:Label runat="server" ID="lblScore"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        备注：
                                    </th>
                                    <td>
                                        <asp:Label runat="server" ID="lblMemo"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
        </div>
    </div>
    <div id="divMsg" style="display: none;">
        <div class="tc_header">
            <h2>
                提示</h2>
            <a id="hideMsg">
                <img src="../images/chacha.png" width="13" height="13"></a>
        </div>
        <div class="tc_content">
            <div class="tanchu03" style="">
                <p id="msgContent">
                </p>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
